import request from '@/utils/request'
//获取订单列表
export const  getOrderlist= (params)=>{

    return request({
        method:'get',
        url:'/order/list',
      params
    })
} 
//获取订单详情
export const  getOrderdetail= (params)=>{

  return request({
      method:'get',
      url:'/order/detail',
    params
  })
} 
// 查询
export const getsearch = (params)=>{
  return request({
    method:"get",
    url:"/order/search",
    params
  })
}
// 修改订单信息
export const editorderinfo = (data)=>{
  return request({
    url:'/order/edit',
    method:'post',
    data
  })
}

// 获取首页echarts数据
export const gethomchartsdata=()=>{

  return request({
    url:'/order/totaldata',
      method:'get',
   
  })
} 

// 获取订单的echarts数据

export const getOrdereChartsData=(params)=>{
  return request({
    method:"get",
    url:"/order/ordertotal",
    params
  })
}
